package com.ruoyi.college.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * @author 明一G
 * @date 2023/3/26 18:48
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("th_major")
public class Major extends BaseEntity implements Serializable  {
	@Excel(name = "编号")
	@TableId(type = IdType.AUTO)
	Long id;
	@Excel(name = "名称")
	String name;
	@Excel(name = "拼音")
	String spell;
	@TableField(exist = false)
	List<Class> classList;
}
